package com.lin.springboottest.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lin.springboottest.mapper.SysUserMapper;
import com.lin.springboottest.model.po.SysUser;
import com.lin.springboottest.service.ISysUserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

    @Override
    public IPage<SysUser> getListByPage() {
        Page page = new Page(1,10);
        List<SysUser> list = this.baseMapper.getListByPage(page);
        page.setRecords(list);
        return page;
    }
}
